PCA Index Dashboard Examples#
This script was last run at 2024-03-12 10:19:33.677957+00:00 (UTC)
In US/Central Time, this is 2024-03-12 05:19:33.677957-05:00
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
# Generating a random time series data
dates = pd.date_range(start="2021-01-01", end="2021-12-31", freq='D')
data = np.random.randn(len(dates)).cumsum()
# Creating the plot
plt.figure(figsize=(10, 6))
plt.plot(dates, data, label='Random Time Series', color='blue')
plt.title('Random Time Series Plot')
plt.xlabel('Date')
plt.ylabel('Value')
plt.legend()
plt.grid(True)
plt.xticks(rotation=45)
plt.tight_layout()
# Display the plot
plt.show()
print('We are just generating a random time serie here.')
We are just generating a random time serie here.
import pandas as pd
pd.DataFrame({'1': [1, 2, 3, 4, 1, 2, 3, 4]}).plot(title='Shakepeare')
<Axes: title={'center': 'Shakepeare'}>